/* 
 * include/kernel/time.h
 *
 * last modified by ChenJie at 2007.07.22
 *
 */

#ifndef TIME_H
#define TIME_H

typedef long time_t;

typedef long clock_t;

typedef unsigned int size_t;

#define CLOCKS_PER_SEC	100


struct tm {
	int tm_sec;
	int tm_min;
	int tm_hour;
	int tm_mday;
	int tm_mon;
	int tm_year;
	int tm_wday;
	int tm_yday;
	int tm_isdst;
};

//clock_t clock(void);
//time_t time(time_t * tp);

/*
 * 内核启动时间
 */
extern unsigned long startup_time; 

/*
 * 获取当前时间
 */
struct tm * gettime(struct tm * t);

void showtime(void);


/*
 * 时间初始化
 */
void time_init(void);

#endif // TIME_H

